Mock.mock("/js/huixiantea","post",function(){
    // 获取本地存储
    let teaString = localStorage.Tea;
    let teaobj=JSON.parse(teaString)
    return teaobj;
})

Mock.mock("/js/chaleix","post",function(obj){
    let bodyObj = JSON.parse(obj.body);
    // 获取本地存储
    let teaString = localStorage.Tea;
    let teaobj=JSON.parse(teaString)
    let arr=[]
    for(let i = 0;i<teaobj.length;i++){
        if(teaobj[i].teaType == bodyObj.type){
            arr.push(teaobj[i])
        }
    }
    return arr;
})